<!--
 * @Description: DImage 图片
 * @Author: zhangwei
 * @Date: 2023-02-02 16:25:48
 * @LastEditTime: 2023-02-20 17:59:24
 * @LastEditors: zhangwei
-->
<template>
  <el-image v-bind="mdata.attrs" :style="getWidgetStyle" />
</template>

<script lang="ts" setup name="DImage">
import type { PropType } from "vue";
import type { TypeWidget } from "@/types/TypeDesign";
import { onMounted, ref } from "vue";
import { useWidget } from "@/hooks/lowcode/useWidget";

var props = defineProps({
  mdata: {
    type: Object as PropType<TypeWidget>,
    default: () => {},
  },
});

let { getWidgetStyle } = useWidget(props.mdata);

onMounted(() => {});
</script>

<style scoped lang="scss"></style>
